package rootPackage.controller.creazione.dbProdotti;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;
import org.slim3.datastore.Datastore;

import rootPackage.service.ProdottiService;;

public class CancellaController extends Controller {

    private ProdottiService service = new ProdottiService();


    @Override
    public Navigation run() throws Exception {
        String chiave=request.getQueryString();
        service.delete(Datastore.stringToKey((chiave)));
        return redirect(basePath);
    }
}
